<%--
   insecptCi
   Copyright (c) 2015 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>

<%@ attribute name="relationId" required="true" type="java.lang.String"
	description="relationId"%>
<%@ attribute name="relationType" required="true"
	type="java.lang.String" description="relationType"%>
<%@ attribute name="readonly" required="false" type="java.lang.Boolean"
	description="readonly"%>




<isperp:mulCiListSelector id="ciSelector" relationId="${relationId }"
	listUrl="task/${relationType}/listCi"
	saveUrl="task/${relationType}/saveWithCi"
	afterSelected="categoryCiGrid.reload();"></isperp:mulCiListSelector>


<isperp:grid gridId="categoryCiGrid"
	cusDeleteUrl="task/${relationType}/delete" cusViewUrl="configuration/ci/ciResumeView?type=ciaudit"
	url="task/${relationType}/listDetail?relationId=${relationId }" cusDialogHeight="600" cusDialogWidth="800"
	cusFormatterActions="true" showSearchbar="false" pager="false"
	height="auto" showPager="false" showToolbar="${!readonly }">

	<jsp:attribute name="toolbar">
	<isperp:button id="selectCiBtn" icon="icon-plus" text="添加资产"
			cssClass="nui-mainbtn" onclick="selectCi();"></isperp:button>
	 </jsp:attribute>
	<jsp:body>
	
	<isperp:column name="id" title="id" hidden="true"></isperp:column>
	<isperp:column name="ci_id" title="ci_id" hidden="true"></isperp:column>
	<isperp:column name="code" title="编号" width="80"></isperp:column>
	<isperp:column name="name" title="资产名称" width="150"></isperp:column>
	<isperp:column name="conf_category_name" title="资产类型" width="150"></isperp:column>
	<isperp:column name="status" title="状态" width="60"></isperp:column>
	
</jsp:body>
</isperp:grid>